<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .scroll-view {
            overflow-y: scroll;
            height: 100vh; /* Adjust as needed */
        }

        .grid {
            display: grid;
            grid-template-rows: 4fr 4fr 1fr 1fr;
            gap: 1rem;
            padding: 1rem;
        }

        .frame {
            border: 1px solid #ccc;
            padding: 1rem;
        }

        .editor {
            width: 100%;
            height: 100px; /* Adjust as needed */
            resize: none;
        }

        .sub-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr) 1fr;
            gap: 1rem;
        }

        .button {
            padding: 1rem;
            background-color: #007bff;
            color: #fff;
            border: none;
            cursor: pointer;
        }
    </style>
</head>
<body>
    <div class="scroll-view">
        <div class="grid">
            <div class="frame">
                <textarea class="editor" placeholder="Editor 1"></textarea>
            </div>
            <div class="sub-grid">
                <div class="frame">
                    <textarea class="editor" placeholder="Editor 2"></textarea>
                </div>
                <div class="frame">
                    <textarea class="editor" placeholder="Editor 3"></textarea>
                </div>
                <div class="frame">
                    <textarea class="editor" placeholder="Editor 4"></textarea>
                </div>
                <div class="frame">
                    <textarea class="editor" placeholder="Editor 5"></textarea>
                </div>
                <button class="button">生成</button>
            </div>
            <button class="button">生成2</button>
            <button class="button">生成2</button>
        </div>
    </div>
</body>
</html>
